const mongoose = require("mongoose");


const Schema = mongoose.Schema

const passSchema = new Schema({
    userId: {
        type: String,
        unique: true,
        require: true
    },
    hash: {
        type: String,
        require: true
    }
}, {
    collection: 'password',
    versionKey: false
})

module.exports = mongoose.model('password', passSchema)